﻿<Window x:Class="NColony.Client.Wpf.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <DockPanel Margin="10">
        <Grid DockPanel.Dock="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Label Grid.Column="0" Content="Address:" />
            <TextBox Grid.Column="1" Name="FeedAddressInput" Margin="5,0,0,0" HorizontalAlignment="Stretch" />
            <Button Grid.Column="2" Name="LoadFeedButton" Margin="5,0,0,0" Content="Load" HorizontalAlignment="Left" />
        </Grid>

        <DockPanel DockPanel.Dock="Bottom" Margin="10" >
            <TextBlock DockPanel.Dock="Top" Text="{Binding Title}" FontFamily="Calibri" FontSize="14" FontWeight="Bold" Margin="10,0,0,0" />

            <ListBox DockPanel.Dock="Bottom"  Margin="10" ItemsSource="{Binding Items}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Margin="5">
                            <TextBlock Text="{Binding Title}" FontWeight="Bold" />
                            <TextBlock Text="{Binding PublishDate, StringFormat=d}" />
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </DockPanel>
    </DockPanel>
</Window>